const http = require('http');

const server = http.createServer((req, res) => {
    if(req.url == '/home'){
        res.writeHead(200,{'content-type':'application/json'})
        res.end('<h1>M3<h1>')
    }
    res.end("DDDDDDDDAMN!")
})

server.listen(3000,() =>{
    console.log('listening on port 3000');
})